﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostCenterSelect.aspx.cs" Inherits="Hisun.View.CostCenterPath.CostCenterSelect" %>
<%--<%@ Reference VirtualPath ="~/View/CostCenterPath/CostCenterPathSetup.aspx" %>--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            width: 300px;
        }
        .style2
        {
            width: 155px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">作业中心分配路径设置</div></div>
    <div class ="CommonPage_Body">

        <table style="width:100%;">
            <tr>
                <td colspan="3">
                   
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label3" runat="server" Text="当前作业中心ID" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_ID" runat="server" ReadOnly="True" SkinID="TextBox"></asp:TextBox>
                    <asp:Label ID="Label4" runat="server" Text="作业中心名称" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_Name" runat="server" ReadOnly="True" SkinID="TextBox"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label2" runat="server" Text="请选择作业动因类型和目标作业中心" SkinID="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="作业动因：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_CostDriver" runat="server" 
                        DataSourceID="LinqDataSource_CostDriverSelect" DataTextField="成本动因名称" 
                        DataValueField="成本动因ID" Height="20px" Width="120px" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_CostDriver" 
                        runat="server" ControlToValidate="DropDownList_CostDriver" ErrorMessage="*" 
                        ValidationGroup="Group"></asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_Save" runat="server" onclick="Button_Save_Click" 
                        Text="保存" ValidationGroup="Group" />
                    <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                        Text="取消" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:TreeView ID="TreeView_GoalCenter" runat="server" ImageSet="News" 
                        NodeIndent="10" ShowCheckBoxes="All" Width="415px">
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="True" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" 
                            VerticalPadding="0px" />
                        <NodeStyle Font-Names="Arial" Font-Size="10pt" ForeColor="Black" 
                            HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:LinqDataSource ID="LinqDataSource_CostDriverSelect" runat="server" 
                        ContextTypeName="Hisun.Models.HisunDBDataContext" Select="new (成本动因ID, 成本动因名称)" 
                        TableName="TABC_DM_CostDivers">
                    </asp:LinqDataSource>
                </td>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
